package com.qf.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * --- ONE PIECE ---
 *
 * @author yangjiangcheng
 * @date 2025/8/9
 * @desc
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Emp {
    /**
     * empno
     * ename
     * job
     * mgr
     * hiredate
     * sal
     * comm
     * deptno
     */
    private int empno;
    private String ename;
    private String job;
    private int mgr;
    // DateTimeFormat
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date hiredate;
    private double sal;
    private double comm;
    private int deptno;
}
